package com.meiyou.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.meiyou.pojo.MeiyouXtinform;
import com.meiyou.service.XtinformService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Controller
@Api(value = "美游app控制器", tags = { "所有api接口" })
public class XtinformController {
    @Resource
    private XtinformService xtinformServiceImpl;

	@RequestMapping(value = "selXtinform", method = RequestMethod.POST)
	@ResponseBody
	@ApiOperation(value = "显示用户系统通知")
	public List<MeiyouXtinform> selXtinform(HttpServletRequest request){
		String xCount=request.getSession().getAttribute("user")+"";
		return xtinformServiceImpl.selXtinform(xCount);
	}
}
